3.422 \(\int \cos (e+f x) (a+b \sin ^4(e+f x))^p \, dx\)

Optimal. Leaf size=67 \[ \frac {\sin (e+f x) \left (a+b \sin ^4(e+f x)\right )^p \left (\frac {b \sin ^4(e+f x)}{a}+1\right )^{-p} \, _2F_1\left (\frac {1}{4},-p;\frac {5}{4};-\frac {b \sin ^4(e+f x)}{a}\right )}{f} \]

[Out]

hypergeom([1/4, -p],[5/4],-b*sin(f*x+e)^4/a)*sin(f*x+e)*(a+b*sin(f*x+e)^4)^p/f/((1+b*sin(f*x+e)^4/a)^p)

________________________________________________________________________________________

Rubi [A]  time = 0.04, antiderivative size = 67, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.143, Rules used = {3223, 246, 245} \[ \frac {\sin (e+f x) \left (a+b \sin ^4(e+f x)\right )^p \left (\frac {b \sin ^4(e+f x)}{a}+1\right )^{-p} \, _2F_1\left (\frac {1}{4},-p;\frac {5}{4};-\frac {b \sin ^4(e+f x)}{a}\right )}{f} \]

Antiderivative was successfully verified.

[In]

Int[Cos[e + f*x]*(a + b*Sin[e + f*x]^4)^p,x]

[Out]

(Hypergeometric2F1[1/4, -p, 5/4, -((b*Sin[e + f*x]^4)/a)]*Sin[e + f*x]*(a + b*Sin[e + f*x]^4)^p)/(f*(1 + (b*Si
n[e + f*x]^4)/a)^p)

Rule 245

Int[((a_) + (b_.)*(x_)^(n_))^(p_), x_Symbol] :> Simp[a^p*x*Hypergeometric2F1[-p, 1/n, 1/n + 1, -((b*x^n)/a)],
x] /; FreeQ[{a, b, n, p}, x] &&  !IGtQ[p, 0] &&  !IntegerQ[1/n] &&  !ILtQ[Simplify[1/n + p], 0] && (IntegerQ[p
] || GtQ[a, 0])

Rule 246

Int[((a_) + (b_.)*(x_)^(n_))^(p_), x_Symbol] :> Dist[(a^IntPart[p]*(a + b*x^n)^FracPart[p])/(1 + (b*x^n)/a)^Fr
acPart[p], Int[(1 + (b*x^n)/a)^p, x], x] /; FreeQ[{a, b, n, p}, x] &&  !IGtQ[p, 0] &&  !IntegerQ[1/n] &&  !ILt
Q[Simplify[1/n + p], 0] &&  !(IntegerQ[p] || GtQ[a, 0])

Rule 3223

Int[cos[(e_.) + (f_.)*(x_)]^(m_.)*((a_) + (b_.)*((c_.)*sin[(e_.) + (f_.)*(x_)])^(n_))^(p_.), x_Symbol] :> With
[{ff = FreeFactors[Sin[e + f*x], x]}, Dist[ff/f, Subst[Int[(1 - ff^2*x^2)^((m - 1)/2)*(a + b*(c*ff*x)^n)^p, x]
, x, Sin[e + f*x]/ff], x]] /; FreeQ[{a, b, c, e, f, n, p}, x] && IntegerQ[(m - 1)/2] && (EqQ[n, 4] || GtQ[m, 0
] || IGtQ[p, 0] || IntegersQ[m, p])

Rubi steps

\begin {align*} \int \cos (e+f x) \left (a+b \sin ^4(e+f x)\right )^p \, dx &=\frac {\operatorname {Subst}\left (\int \left (a+b x^4\right )^p \, dx,x,\sin (e+f x)\right )}{f}\\ &=\frac {\left (\left (a+b \sin ^4(e+f x)\right )^p \left (1+\frac {b \sin ^4(e+f x)}{a}\right )^{-p}\right ) \operatorname {Subst}\left (\int \left (1+\frac {b x^4}{a}\right )^p \, dx,x,\sin (e+f x)\right )}{f}\\ &=\frac {\, _2F_1\left (\frac {1}{4},-p;\frac {5}{4};-\frac {b \sin ^4(e+f x)}{a}\right ) \sin (e+f x) \left (a+b \sin ^4(e+f x)\right )^p \left (1+\frac {b \sin ^4(e+f x)}{a}\right )^{-p}}{f}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.02, size = 67, normalized size = 1.00 \[ \frac {\sin (e+f x) \left (a+b \sin ^4(e+f x)\right )^p \left (\frac {b \sin ^4(e+f x)}{a}+1\right )^{-p} \, _2F_1\left (\frac {1}{4},-p;\frac {5}{4};-\frac {b \sin ^4(e+f x)}{a}\right )}{f} \]

Antiderivative was successfully verified.

[In]

Integrate[Cos[e + f*x]*(a + b*Sin[e + f*x]^4)^p,x]

[Out]

(Hypergeometric2F1[1/4, -p, 5/4, -((b*Sin[e + f*x]^4)/a)]*Sin[e + f*x]*(a + b*Sin[e + f*x]^4)^p)/(f*(1 + (b*Si
n[e + f*x]^4)/a)^p)

________________________________________________________________________________________

fricas [F]  time = 0.47, size = 0, normalized size = 0.00 \[ {\rm integral}\left ({\left (b \cos \left (f x + e\right )^{4} - 2 \, b \cos \left (f x + e\right )^{2} + a + b\right )}^{p} \cos \left (f x + e\right ), x\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cos(f*x+e)*(a+b*sin(f*x+e)^4)^p,x, algorithm="fricas")

[Out]

integral((b*cos(f*x + e)^4 - 2*b*cos(f*x + e)^2 + a + b)^p*cos(f*x + e), x)

________________________________________________________________________________________

giac [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int {\left (b \sin \left (f x + e\right )^{4} + a\right )}^{p} \cos \left (f x + e\right )\,{d x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cos(f*x+e)*(a+b*sin(f*x+e)^4)^p,x, algorithm="giac")

[Out]

integrate((b*sin(f*x + e)^4 + a)^p*cos(f*x + e), x)

________________________________________________________________________________________

maple [F]  time = 4.07, size = 0, normalized size = 0.00 \[ \int \cos \left (f x +e \right ) \left (a +b \left (\sin ^{4}\left (f x +e \right )\right )\right )^{p}\, dx \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(cos(f*x+e)*(a+b*sin(f*x+e)^4)^p,x)

[Out]

int(cos(f*x+e)*(a+b*sin(f*x+e)^4)^p,x)

________________________________________________________________________________________

maxima [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int {\left (b \sin \left (f x + e\right )^{4} + a\right )}^{p} \cos \left (f x + e\right )\,{d x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cos(f*x+e)*(a+b*sin(f*x+e)^4)^p,x, algorithm="maxima")

[Out]

integrate((b*sin(f*x + e)^4 + a)^p*cos(f*x + e), x)

________________________________________________________________________________________

mupad [B]  time = 15.62, size = 64, normalized size = 0.96 \[ \frac {\sin \left (e+f\,x\right )\,{\left (b\,{\sin \left (e+f\,x\right )}^4+a\right )}^p\,{{}}_2{\mathrm {F}}_1\left (\frac {1}{4},-p;\ \frac {5}{4};\ -\frac {b\,{\sin \left (e+f\,x\right )}^4}{a}\right )}{f\,{\left (\frac {b\,{\sin \left (e+f\,x\right )}^4}{a}+1\right )}^p} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(cos(e + f*x)*(a + b*sin(e + f*x)^4)^p,x)

[Out]

(sin(e + f*x)*(a + b*sin(e + f*x)^4)^p*hypergeom([1/4, -p], 5/4, -(b*sin(e + f*x)^4)/a))/(f*((b*sin(e + f*x)^4
)/a + 1)^p)

________________________________________________________________________________________

sympy [F(-1)]  time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cos(f*x+e)*(a+b*sin(f*x+e)**4)**p,x)

[Out]

Timed out

________________________________________________________________________________________